#include "defines.txt"

if (new_room) {
  load.pic(room_no);
  draw.pic(room_no);
  discard.pic(room_no);
  set.horizon(37);
  animate.obj(o2);
  load.view(2);
  set.view(o2,2);
  position(o2,1,128);
  draw(o2);
  move.obj(o2,60,128,1,f210);
  show.pic();
}
if (isset(f210)) {
  print("Well, here we are shouts the driver!");
  reset(f210);
  stop.cycling(o2);
  set(f211);
}
if (isset(f211)) {
   draw(ego);
   show.pic();
}
if (said("open","door")) {
  if (posn(o0,30,108,56,111)) {
    new.room(10);
  }
  else {
    print("You are not close enough.");
  }
}
if (said("look")) {
  print("You stand in front of the EAST INDIA CONSORTIUM Karol Bagh branch.");
}
if (ego_edge_code == right_edge) {    // ego touching right edge of screen
  new.room(5);
}
if (has("spell book")) {
  if (said("open","book")) {
    print("The spells are as follows-.");
    print("DHOOA: Makes everyone go blind, except you.");
    print("KALI: You can open any door with this one.");
    print("PINKU: You will know the answer to any questions if you use this.");
    print("That's all.");
  }
}
if (has("spell book")) {
  if (said("dhooa")) {
    print("No need of using this now.");
  }
}
if (has("spell book")) {
  if (said("Kali")) {
    print("No need of using this now.");
  }
}
if (has("spell book")) {
  if (said("pinku")) {
    print("No need of using this now.");
  }
}
return();